#pragma once
#include "napi/native_api.h";
#include <hilog/log.h>
//模式化Log ,免得直接用OH LOG 好痛苦
const unsigned int LOG_PRINT_DOMAIN = 0xFF00;
#define MLOG(fmt) OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "===ArkTSGame.Log===", fmt)
#define MWARN(fmt) OH_LOG_Print(LOG_APP, LOG_WARN, LOG_PRINT_DOMAIN, "===ArkTSGame.Warn===", fmt)
#define MERROR(fmt) OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "===ArkTSGame.Error===", fmt)
#define MLOGFormat(fmt, ...) OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "===ArkTSGame.Log===", fmt, __VA_ARGS__)
#define MWARNFormat(fmt, ...) OH_LOG_Print(LOG_APP, LOG_WARN, LOG_PRINT_DOMAIN, "===ArkTSGame.Warn===", fmt, __VA_ARGS__)
#define MERRORFormat(fmt, ...) OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "===ArkTSGame.Error===", fmt, __VA_ARGS__)
